package test6.publics;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

import test6.pages.ItineraryPage;

public class ItineraryUser {

	public static void remove(WebDriver driver ,String string) {
	driver.switchTo().defaultContent();//退回到主界面
	driver.switchTo().frame("body");
	driver.switchTo().frame("navbar");
	ItineraryPage.itElement(driver).click();
	driver.switchTo().defaultContent();//退回到主界面
	driver.switchTo().frame("body");
	driver.switchTo().frame(driver.findElement(By.name("info")));
	ItineraryPage.lable(driver, string).click();
	ItineraryPage.remove(driver).click();
	
	}
	
}
